<script setup>
import { ref } from 'vue'
import { Print } from '@/utils/print.js'
import ExcelDemo from './components/ExcelDemo.vue'
const printRef = ref()
// 打印
const handlePrint = () => {
  Print(printRef.value.$el)
}
</script>

<template>
  <layout-card>
    <!-- 操作区域 -->
    <div class="handle-container">
      <el-button type="primary" icon="Printer" @click="handlePrint">打印</el-button>
    </div>
    <ExcelDemo ref="printRef"></ExcelDemo>
  </layout-card>
</template>

<style lang="scss" scoped></style>
